#ifndef DIRECT3D_UTIL
#define DIRECT3D_UTIL

// Safely releases COM objects
#ifndef SRELEASE
	#define SRELEASE(p)		if( p ) { p->Release(); p = NULL; }
#endif

// Used for reporting errors
#ifndef DXERROR
	#define DXERROR(a)	{ OutputDebugString(a); OutputDebugString("\n"); return false; }
#endif

#endif // DIRECT3D_UTIL